home *** CD-ROM | disk | FTP | other *** search
/ Java Interactive Reference Guide / Java Interactive Reference Guide.iso / autorun / unit1.pas < prev   
Pascal/Delphi Source File  |  1980-01-03  |  657b  |  40 lines

  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, ExtCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Timer1: TTimer;
  12.     procedure Timer1Timer(Sender: TObject);
  13.     procedure FormShow(Sender: TObject);
  14.   private
  15.     { Private declarations }
  16.   public
  17.     { Public declarations }
  18.   end;
  19.  
  20. var
  21.   Form1: TForm1;
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TForm1.Timer1Timer(Sender: TObject);
  28. begin
  29. CLOSE;
  30. end;
  31.  
  32. procedure TForm1.FormShow(Sender: TObject);
  33. VAR CMD:ARRAY [0..255] OF CHAR;
  34. begin
  35. STRPCOPY(CMD, 'D:\AUTORUN\JAVA');
  36. WINEXEC(CMD,SW_SHOWnormal);
  37. end;
  38.  
  39. end.
  40.